import request from "@/utils/request";
import pathname from "./pathname";

export function getMyAccessResult(params) {
  return request({
    url: pathname.getMyAccessResult,
    method: "get",
    params,
    _hasLoading: false
  });
}

export function getUnitResultAnnounce(params) {
  return request({
    url: pathname.getUnitResultAnnounce,
    method: "get",
    params,
    _hasLoading: false
  });
}

export function creatResultAssess(data) {
  return request({
    url: pathname.creatResultAssess,
    method: "post",
    data,
    _hasLoading: true
  });
}

export function saveResultAssess(data) {
  return request({
    url: pathname.saveResultAssess,
    method: "post",
    data,
    _hasLoading: true
  });
}

export function getUnitResultDetail(params) {
  return request({
    url: pathname.getUnitResultDetail,
    method: "get",
    params,
    _hasLoading: true
  });
}

export function getYearMyAccessResult(params) {
  return request({
    url: pathname.getYearMyAccessResult,
    method: "get",
    params,
    _hasLoading: true
  });
}

export function getYearUnitResultAnnounce(params) {
  return request({
    url: pathname.getYearUnitResultAnnounce,
    method: "get",
    params,
    _hasLoading: true
  });
}

export function getYearUnitResultDetail(params) {
  return request({
    url: pathname.getYearUnitResultDetail,
    method: "get",
    params,
    _hasLoading: true
  });
}
